package com.paw.core.config;

import com.paw.core.intercepter.SecurityInterceptor;
import com.paw.core.intercepter.UserInfoInterceptor;
import org.springframework.core.annotation.Order;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Rubble
 * @date 2021/8/27
 **/
@Order(value = 2)
public class SecurityConfiguration implements WebMvcConfigurer {


  @Override
  public void addInterceptors (InterceptorRegistry registry) {
    registry.addInterceptor(new SecurityInterceptor()).addPathPatterns("/api/**");
  }
}
